package com.vx.cloud.dataCloud;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * Created by aofavx on 2017-8-12.
 */
@SpringBootApplication
//开启网关注解Zuul
@EnableZuulProxy
//开启断路由功能，并且可以通过Hystrix监控面板查看访问情况
@EnableCircuitBreaker
public class ZuulServer {
    public static void main(String[] args) {
        new SpringApplicationBuilder(ZuulServer.class).web(true).run(args);
    }
}
